$(function(){
	window.pageMove={
		offset:$(window).height()-20,
		down:function(){
			$(window).scrollTop($(window).scrollTop()+this.offset);
		},
		up:function(){
			$(window).scrollTop($(window).scrollTop()-this.offset);
		}
	}

	$(window).click(function(e){
		var y=e.clientY;
		var wH=$(window).height()/2;
		//console.log(y);
		//console.log($(window).height());
		if(y>wH){
			pageMove.down();
		}else{
			pageMove.up();
		}

	});

	// $(window).keydown(function(event){
	//   alert(event.keyCode);
	// });

})


